package com.ict.bills.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ict.bills.mapper.BilltypeMapper;
import com.ict.bills.domain.Billtype;
import com.ict.bills.service.BilltypeService;

import java.util.List;

/**
 * @Author: Lizbeth9421
 * @Date: 2021/10/10/0:47
 */
@Service
public class BilltypeServiceImpl implements BilltypeService{

    @Resource
    private BilltypeMapper billtypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return billtypeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Billtype record) {
        return billtypeMapper.insert(record);
    }

    @Override
    public int insertSelective(Billtype record) {
        return billtypeMapper.insertSelective(record);
    }

    @Override
    public Billtype selectByPrimaryKey(Integer id) {
        return billtypeMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Billtype record) {
        return billtypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Billtype record) {
        return billtypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Billtype> loadAllBillType() {
        return billtypeMapper.loadAllBillType();
    }

}
